FROM debian:12.12-slim
ENV TZ=Asia/Shanghai
ARG G_V
COPY greptime-linux-amd64-v$G_V/greptime standalone.toml /usr/local/greptime/0.17.2/
WORKDIR /usr/local/greptime/$G_V/
ENV  PATH=$PATH:/usr/local/greptime/$G_V/
ENTRYPOINT ["greptime","standalone","start","-c","standalone.toml"]

# https://docs.greptime.cn/getting-started/installation/greptimedb-standalone
# https://github.com/GreptimeTeam/greptimedb/releases/tag/v0.17.2
# greptime standalone start -c standalone.toml
# docker build --build-arg G_V=0.17.2  -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/greptime:0.17.2 .
# docker run -p 4000:4000 registry.cn-hangzhou.aliyuncs.com/xiaoyilin/greptime:0.17.2
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/greptime:0.17.2
# greptime standalone start  --http-addr 0.0.0.0:4000  --rpc-bind-addr 0.0.0.0:4001 --mysql-addr 0.0.0.0:4002 --postgres-addr 0.0.0.0:4003